package club.framework.web.application.sys.user.mapper;


import club.framework.web.application.sys.user.entity.User;
import club.framework.web.base.entity.BasePageReqEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by 念梓  on 2017/9/5.
 * Email:sunmch@163.com
 * author: 念梓
 * des:
 */

public interface UserMapper {

    public User getObject(User user);

    public User getUserById(int id);

    public int save(User user);

    public int delete(User user);

    public int delete(int id);

    public int delete(long uid);

    public int update(User user);

    public int queryTotalCount(User user);

    public List<User> queryPage(BasePageReqEntity<User> basePageReqEntity);

    public List<Integer> getMenuIdByUserId(@Param("userId") int userId);

    public int batchSaveUserMenu(List<Map<String,Object>> userMenu);

    public int deleteUserMenuByUserId(@Param("userId") int userId);

}
